<template>
  <div class="shop" >
    <img class="shop__item__img" :src="item.imgUrl">
    <div class="shop__content" :class="{'shop__content--hiddenBorder':!hiddenBorder}">
      <div class="shop__content__title">{{item.name}}</div>
      <div class="shop__content__tags">
        <span class="shop__content__tag">月售{{item.sales}}万</span>
        <span class="shop__content__tag">起送{{item.expressLimit}}元</span>
        <span class="shop__content__tag">基础运费{{item.expressPrice}}元</span>
      </div>
      <p class="shop__content__highlight">{{item.slogan}}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ShopInfo',
  props: ['item', 'hiddenBorder']
}
</script>

<style lang="scss" scoped>
@import '../style/virables';
.shop{
  display: flex;
  margin-top: 10px;
  &__item{
    display: flex;
    padding-top: .12rem ;
    &__img{
      margin-right: .16rem;
      width: .56rem;
      height: .56rem;
    }
  }
  &__content{
    flex: 1;
    padding-bottom: .12rem ;
    &--hiddenBorder{
      border-bottom: 1px solid #ccc;
    }

    &__title{
      line-height: .22rem;
      font-size: .16rem;
      color: $content-fontcolor;
    }
    &__tags{
      margin-top: .08rem;
      line-height: .18rem;
      font-size: .13rem;
      color: $content-fontcolor;
    }
    &__tag{
      margin-right: .16rem;
    }
    &__highlight{
      color: #E93B3B;
      line-height: .18rem;
      font-size: .13rem;
      margin: .08rem 0 0 0;
    }
  }
}
</style>
